package com.itheima.edu.info.manager.service;

import com.itheima.edu.info.manager.dao.TeacherDao;
import com.itheima.edu.info.manager.domain.Teacher;

/**
 * 学生业务处理类
 */
public interface ITeacherService {


    public boolean addTeacher(Teacher teacher) ;

    //判断学号是否灿在
    public boolean isExists(String sId) ;

    public Teacher[] findAllTeachers() ;

    public void deleteTeacher(String deleteId);

    public void updateTeacher(String updateId, Teacher teacher);
    //获取学号所在的索引
    public int getIndex(String sid);
    //通过索引删除指定的学生对象
    public void deleteTeacherByIndex(int index) ;



    // //用在service 查找索引的方式 来删除

}
